<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb" Inherits="AJAXEnabledWebApplication2.WebForm1" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <script type="text/javascript">
    function GetURL(value)
    {
         //alert("j");
         __doPostBack('updpnlTreeView',value);	
       
    }
    
    
    function fPopulateRequest(value)
    {
        //alert(value);
      __doPostBack('updpnlRequest','NodeClick|' + value);
    }


    
   function fUpdateFieldValue(value)
   {
    alert(value);
   
   }
    
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <table width="800px">
        <tr>
        <td width="20%" style="height: 104px">
            &nbsp;
            <asp:Label ID="Label1" runat="server" Text="WSDL EndPoint" Width="100%"></asp:Label></td>
        <td width="70%" style="height: 104px">
            <asp:TextBox ID="txtUrl" runat="server" Width="98%"></asp:TextBox></td>
        <td valign="middle" style="width: 5%; height: 104px;" >
            <input id="btnGo" type="button" value="Go" language="javascript" onclick="GetURL(this.value);" /></td>
        <td valign="middle" style="width: 5%; height: 104px;">
        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
            <ProgressTemplate>
                <asp:Image ID="Image1" runat="server" ImageUrl="~/status_anim.gif" />
            </ProgressTemplate>
        </asp:UpdateProgress>
        </td>
         
        </tr>
        
        </table>
        <cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0">
            <cc1:TabPanel ID="TabPanel1" runat="server" HeaderText="TabPanel1">
          <ContentTemplate>
          <table width="1200" height = "600">
        <tr>
        <td width="30%" valign="top" style="height: 603px"><br />
         <asp:UpdatePanel ID="updpnlTreeView" runat="server" UpdateMode="Conditional" >
            <ContentTemplate>
                   <asp:Panel ID="Panel2" runat="server" Height="100%" Width="93%" ScrollBars="Vertical" BorderColor="Blue" BorderStyle="Solid" BorderWidth="1px" Font-Names="Arial" ForeColor="#FF8000">
                   <asp:TreeView ID="MethodTree" runat="server" Height="100%" Width="93%" BorderColor="#FF8000" BorderStyle="None" Font-Size="Small" BorderWidth="1px" ForeColor="Black"  >
                   </asp:TreeView>
                </asp:Panel>
            </ContentTemplate>
        </asp:UpdatePanel>
        </td>
        <td width="1%" style="height: 603px" ></td>
        <td width="34%" valign="top" style="height: 603px">
        <asp:UpdatePanel ID="updpnlRequest" runat="server" UpdateMode="Conditional" >
            <ContentTemplate>
                &nbsp;<asp:Panel ID="Panel1" runat="server" Height="100%" Width="93%" ScrollBars="Vertical" BorderColor="#FF8000" BorderStyle="Solid" BorderWidth="1px" Font-Names="Arial">
                    &nbsp;<asp:TreeView ID="InputTree" runat="server" Height="100%" Width="93%">
                    </asp:TreeView>
                </asp:Panel>
                <input id="hdnXML" type="hidden" runat="server" />
            </ContentTemplate>
        </asp:UpdatePanel>
        </td>
        <td width="35%" style="height: 603px" valign="top">
            <textarea id="txtXPath" cols="20" rows="2" style="width:93%" readonly="readOnly" unselectable="on"></textarea>
            <input id="txtFieldValue" type="text" style="width:93%" onchange="fUpdateFieldValue(this.value);" /></td>
        </tr>
        </table>
          
          </ContentTemplate>
            </cc1:TabPanel>
            <cc1:TabPanel ID="TabPanel2" runat="server" HeaderText="TabPanel2">
            </cc1:TabPanel>
            <cc1:TabPanel ID="TabPanel3" runat="server" HeaderText="TabPanel3">
            </cc1:TabPanel>
        </cc1:TabContainer>
    <div>
    
    </div>
    </form>
</body>
</html>
